<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
	
	<link href="{yun:}$config.sy_weburl{/yun}/js/layui/css/layui.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
	<link href="images/reset.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
	<link href="images/system.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
   	<link href="images/table_form.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
 	<link href="images/workspace.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" /> 
 	
	<script src="{yun:}$config.sy_weburl{/yun}/js/jquery-1.8.0.min.js?v={yun:}$config.cachecode{/yun}"></script>
	<script src="js/crm.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script> 
	<script src="js/admin_public.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script> 
  	<script src="{yun:}$config.sy_weburl{/yun}/js/layui/layui.js?v={yun:}$config.cachecode{/yun}"></script>
	<script src="{yun:}$config.sy_weburl{/yun}/js/layui/phpyun_layer.js?v={yun:}$config.cachecode{/yun}"></script>
	
	<title>后台管理</title>
	
</head>

<body class="body_ifm">
	<div class="infoboxp"> 
        <div class="tabs_info" style="height:36px;">
           	<ul>
	            <li class="curr">
	                <a href="###">联系跟进</a>
	         	</li>
           	</ul>	
       	</div>   
	<div class="crm_searctime">
           	<ul>
               	<li {yun:}if $smarty.get.day==''{/yun}class='curr'{yun:}/if{/yun}><a href="index.php?m=crm_concernall">全部</a></li>
                <li {yun:}if $smarty.get.day==1{/yun}class='curr'{yun:}/if{/yun}><a href="index.php?m=crm_concernall&day=1">今天</a></li>
                <li {yun:}if $smarty.get.day==2{/yun}class='curr'{yun:}/if{/yun}><a href="index.php?m=crm_concernall&day=2">昨天</a></li>
                <li {yun:}if $smarty.get.day==3{/yun}class='curr'{yun:}/if{/yun}><a href="index.php?m=crm_concernall&day=3">本周</a></li>
                <li {yun:}if $smarty.get.day==4{/yun}class='curr'{yun:}/if{/yun}><a href="index.php?m=crm_concernall&day=4">本月</a></li>
           	</ul>
       	</div>  
       	
	  	<div class="clear"></div>
      	
      	<iframe id="supportiframe"  name="supportiframe" onload="returnmessage('supportiframe');" style="display:none"></iframe>
		<form class="layui-form" action="index.php" name="myform" method="get" id='myform' target="supportiframe">	<div class="crm_newly_build_tit" style="padding:0; padding-top:10px;">
										
			<div class="layui-input-inline">
				<select name="uid" id="uid" lay-filter='uid'>
					<option value="" {yun:}if !$smarty.get.uid{/yun}selected{yun:}/if{/yun} data-url="{yun:}searchurl m=$smarty.get.m c=$smarty.get.c adv='' adt='uid' untype='uid'{/yun}">全部</option>
					{yun:}foreach item=v from=$auser{/yun}
					<option value="{yun:}$v.uid{/yun}" {yun:}if $smarty.get.uid ==$v.uid{/yun}selected{yun:}/if{/yun} data-url="{yun:}searchurl m=$smarty.get.m c=$smarty.get.c adv=$v.uid adt='uid' untype='uid'{/yun}">{yun:}$v.name{/yun}</option>
					{yun:}/foreach{/yun}
				</select>
			</div>
		</div>	
			
      	<div class="table-list" style=" margin-top:10px;">
	  		<div class="admin_table_border">
      			<table width="100%">
		      		<thead>
		      			<tr class="admin_table_top">
		      				<th>客户名称</th>
		      				<th>跟进时间</th>
		      				<th>联系方式</th>
		      				<th>跟进阶段</th>
		      				<th>跟进结果</th>
		      				<th>录入</th>
		      				<th>操作</th>
		      			</tr>
		        	</thead>
		        	
		       		<tbody>
		       			{yun:}foreach from = $rows item = v{/yun}
      					<tr>
      						<td>
     							<div style="padding-left:10px;">
      								<a href='{yun:}url m=company c=show id=$v.uid{/yun}' target="_blank">{yun:}$v.name{/yun}</a>
       								<div class="mt5">联系人：<a href="javascript:OpenContact('{yun:}$v.uid{/yun}','index.php?m=crm_waitingtask&c=ComDetail')" class="admin_com_name">{yun:}$v.linkman{/yun}</a></div>
       							</div>
       						</td>
       						<td align="center">{yun:}$v.time|date_format:'m月d日 H时i分'{/yun}</td>
							<td align="center">{yun:}$v.type_n{/yun}</td>
							<td align="center">{yun:}$v.status_n{/yun}</td>
						 	<td>
						 		<div style="max-width:300px;padding-left:10px;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;">
						 			{yun:}$v.content{/yun}
						 		</div>
 						 	</td>
							
							<td>
								录入人：{yun:}$v.aname{/yun}
								<div class="mt5">录入时间：{yun:}$v.time|date_format:'Y-m-d H:i:s'{/yun}</div>
								<div class="mt5">负责人：{yun:}$v.aname{/yun}</div>
							</td>
							<td align="center">
								<input type="hidden" id="pytoken" name="pytoken" value="{yun:}$pytoken{/yun}">
								<br>
								<a href="javascript:void(0);" onClick="layer_del('确定要删除？', 'index.php?m=crm_concernall&c=del&id={yun:}$v.id{/yun}');" class="crm_submitqx">删除</a>
								
							</td>
      					</tr>
       					{yun:}foreachelse{/yun}
      					
	      					<tr align="center">
					        	<td class="ud" colspan="5">暂无跟进记录</td>
					      	</tr>
      					
      					{yun:}/foreach{/yun}
      					

      					{yun:}if $total > $config.sy_listnum {/yun}
					 		<tr>
								{yun:}if $pagenum==1{/yun}
									<td colspan="3"> 从 1 到 {yun:}$config.sy_listnum {/yun} ，总共 {yun:}$total{/yun} 条</td>
								{yun:}else if $pagenum > 1 && $pagenum < $pages{/yun}
									<td colspan="3"> 从 {yun:}($pagenum-1) * $config.sy_listnum + 1{/yun} 到 {yun:}$pagenum * $config.sy_listnum{/yun} ，总共 {yun:}$total{/yun} 条</td>
								{yun:}else if $pagenum == $pages{/yun}
									<td colspan="3"> 从 {yun:}($pagenum-1) * $config.sy_listnum + 1{/yun} 到 {yun:}$total{/yun} ，总共 {yun:}$total{/yun} 条</td>
								{yun:}/if{/yun}
								<td colspan="4" class="digg">{yun:}$pagenav{/yun}</td>
							</tr>
						{yun:}/if{/yun}
        			</tbody>
        			
        			<input type="hidden" name="pytoken" id="pytoken" value="{yun:}$pytoken{/yun}">
        			
      			</table>
			
          	</div>
			
      	</div></form>
      	
	</div>	
 

	<script>
		layui.use(['form', 'layer'], function(){
			var $ = layui.jquery,
				layer = layui.layer,
				form = layui.form
				,$ = layui.$;
			
			form.on('select(uid)', function(data){
				var url=$('#uid option:selected').attr('data-url');
				location.href=url;
			});
		});
	</script>

{yun:}include file="$adminstyle/crm_public.htm"{/yun}

</body>
</html>